x86: rework hypercall argument count table instantiation & use
authorJan Beulich <jbeulich@suse.com>
Thu, 18 Aug 2022 07:30:41 +0000 (09:30 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 18 Aug 2022 07:30:41 +0000 (09:30 +0200)
commit6c987150cf71976b5dd16b5f736dd5b0c6f6aee8
tree28fd4ac192933b1b30171ef8748c313a16b9425f
parentfe3f50726e878c81985e28282927d151a0d49de5
x86: rework hypercall argument count table instantiation & use

The initial observation were duplicate symbols that our checking warns
about. Instead of merely renaming one or both pair(s) of symbols,
reduce #ifdef-ary at the same time by moving the instantiation of the
arrays into a macro. While doing the conversion also stop open-coding
array_access_nospec().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
xen/arch/x86/hvm/hypercall.c
xen/arch/x86/include/asm/hypercall.h
xen/arch/x86/pv/hypercall.c